import request from '@/utils/request'

// 查询泳馆列表
export function listNatatorium(query) {
  return request({
    url: '/system/natatorium/list',
    method: 'get',
    params: query
  })
}

// 查询泳馆详细
export function getNatatorium(id) {
  return request({
    url: '/system/natatorium/' + id,
    method: 'get'
  })
}

// 新增泳馆
export function addNatatorium(data) {
  return request({
    url: '/system/natatorium',
    method: 'post',
    data: data
  })
}

// 修改泳馆
export function updateNatatorium(data) {
  return request({
    url: '/system/natatorium',
    method: 'put',
    data: data
  })
}

// 删除泳馆
export function delNatatorium(id) {
  return request({
    url: '/system/natatorium/' + id,
    method: 'delete'
  })
}

// 导出泳馆
export function exportNatatorium(query) {
  return request({
    url: '/system/natatorium/export',
    method: 'get',
    params: query
  })
}